import App from './App';

// 全局mixins，用于实现setData等功能，请勿删除！';
import zpMixins from '@/uni_modules/zp-mixins/index.js';
import uviewPlus from '@/uni_modules/uview-plus'
// #ifndef VUE3
import Vue from 'vue';
Vue.use(zpMixins);
Vue.use(uView)
import * as commonUnits from '@/common/commonUnits.js';
Vue.prototype.$commonUnits = commonUnits;
import * as request from '@/common/request.js';
Vue.prototype.$req = request;
Vue.config.productionTip = false;
App.mpType = 'app';
const app = new Vue({
    ...App
});
app.$mount(
);
// #endif

// #ifdef VUE3

import * as commonUnits from '@/common/commonUnits.js';
import * as userPerssion from '@/common/permission.js';
import * as request from '@/common/request.js';
import { createSSRApp } from 'vue';
export function createApp() {
    const app = createSSRApp(App);
    app.mixin(zpMixins);
    app.use(uviewPlus)
	app.config.globalProperties.$commonUnits = commonUnits;
	app.config.globalProperties.$userPerssion = userPerssion;
    app.config.globalProperties.$req = request;
    return {
        app
    };
}
// #endif

